"""For basic init and call"""
import os

from langchain.llms import QianfanLLMEndpoint

os.environ["QIANFAN_AK"] = "ALTAKORErYH8Jc1dsNav44vJ5E"
os.environ["QIANFAN_SK"] = "9e0b501c352a4c80ad9ba8f8b1fdbf8a"

llm = QianfanLLMEndpoint(streaming=True)
res = llm("hi")
print(res)